package es.xpt.ysf.commons.changelogger;

import java.security.Principal;
import java.util.ResourceBundle;

import es.xpt.ysf.dao.Connection;
import es.xpt.ysf.dao.DAOErrors;
import es.xpt.ysf.dao.DAOException;
import es.xpt.ysf.dao.DbDAOFactory;

public class ChangeLoggerDAOFactory extends DbDAOFactory {
	
	private static DAOErrors errors =new DAOErrors(ResourceBundle.getBundle("es.xpt.ysf.commons.changelogger.ChangeLoggerErrorMessages"));

	public ChangeLoggerDAOFactory(Connection c, Principal principal) { // NO_UCD 
		super(c, principal);
	}
	
	public ChangeLoggerDAOFactory(String dataSource, Principal principal) throws DAOException {
		super(dataSource,principal);
	}

	public ChangeLoggerDAO getChangeLoggerDAO()  {
		return new ChangeLoggerDAO(con, principal, errors);
	}
	
}